home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 147
/
Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z
/
Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin
/
docs
/
complex
/
makefile
< prev
next >
Wrap
Makefile
|
2000-06-23
|
3KB
|
107 lines
SHELL = ksh
# define `CC' as C Compliler and `AS' as Assembler
CC = gcc2
AS = has
# define `CC_' as C Compliler for `_iscopro.c' on X68k libc
CC_ = gcc
# define `_ISCOPRO_..' on X68k libc
_ISCOPRO_C = _iscopro.c
_ISCOPRO_O = _iscopro.o
_ISCOPRO_O_ = ../_iscopro.o
#_ISCOPRO_C =
#_ISCOPRO_O =
#_ISCOPRO_O_ =
DST = mandel julia3 julia3c
SRC = Makefile complex.h \
$(foreach f, $(DST), $f.c) \
palettbl.c screen.c $(_ISCOPRO_C)
OBJ = $(foreach f, $(DST), $f.o)
BIN = $(foreach f, $(DST), $f.x)
LZHSRC = FRACSRC.LZH
LZHBIN = FRACBIN.LZH
all:
-mkdir 000; cd 000; make -f ../Makefile -S TARGET="-m68000" all_
-mkdir 020; cd 020; make -f ../Makefile -S TARGET="-m68020" all_
-mkdir 881; cd 881; make -f ../Makefile -S TARGET="-m68020 -m68881" all_
-mkdir 040; cd 040; make -f ../Makefile -S TARGET="-m68040" all_
all_: $(BIN)
lzh: $(LZHSRC) $(LZHBIN)
$(LZHSRC): $(SRC)
-rm $(LZHSRC)
lha a -t $(LZHSRC) $(SRC)
$(LZHBIN):
-rm $(LZHBIN)
make -S DIR="000" lzhbin_
make -S DIR="020" lzhbin_
make -S DIR="881" lzhbin_
make -S DIR="040" lzhbin_
lzhbin_:
lha u -rtx $(LZHBIN) $(foreach f, $(BIN), $(DIR)/$f)
mandel.x: mandel.o palettbl.o ../screen.o $(_ISCOPRO_O_)
$(CC) -o mandel.x mandel.o palettbl.o ../screen.o $(_ISCOPRO_O_) -liocs -ldos
mandel.o: ../mandel.c ../complex.h
$(CC) -S -O -o ../temp1.s ../mandel.c $(TARGET)
sed 's/\.even/\.align 8/' ../temp1.s > ../temp2.s
$(AS) -u -w -o mandel.o ../temp2.s
julia3.x: julia3.o palettbl.o ../screen.o $(_ISCOPRO_O_)
$(CC) -o julia3.x julia3.o palettbl.o ../screen.o $(_ISCOPRO_O_) -liocs -ldos
julia3.o: ../julia3.c ../complex.h
$(CC) -S -O -o ../temp1.s ../julia3.c $(TARGET)
sed 's/\.even/\.align 8/' ../temp1.s > ../temp2.s
$(AS) -u -w -o julia3.o ../temp2.s
julia3c.x: julia3c.o palettbl.o ../screen.o $(_ISCOPRO_O_)
$(CC) -o julia3c.x julia3c.o palettbl.o ../screen.o $(_ISCOPRO_O_) -liocs -ldos
julia3c.o: ../julia3c.c ../complex.h
$(CC) -S -O -o ../temp1.s ../julia3c.c $(TARGET)
sed 's/\.even/\.align 8/' ../temp1.s > ../temp2.s
$(AS) -u -w -o julia3c.o ../temp2.s
palettbl.o: ../palettbl.c
$(CC) -c -O -o palettbl.o ../palettbl.c $(TARGET)
../screen.o: ../screen.c
$(CC) -c -O -o ../screen.o ../screen.c -m68000
# on X68k libc
../_iscopro.o: ../_iscopro.c
$(CC_) -c -O -o ../_iscopro.o ../_iscopro.c -m68000
clean:
cd 000; make -f ../Makefile clean_
cd 020; make -f ../Makefile clean_
cd 881; make -f ../Makefile clean_
cd 040; make -f ../Makefile clean_
-rm screen.o $(_ISCOPRO_O)
-rm temp1.s temp2.s
clean_:
-rm $(OBJ)
-rm palettbl.o